{"version":3,"file":"scripts.min.js","mappings":"MAeA,SAASA,EAAUC,EAAcC,GAE9B,IAAKC,EAAQC,SAASC,eAAe,gBAChCC,EAAaH,EAAKI,iBAClBC,EAAML,EAAKM,iBAAiBP,EAAMI,GAGnCI,EAAMN,SAASO,cAAc,OACjCD,EAAIE,YAAcX,EAClBS,EAAIG,aAAa,QAAS,WAC1BH,EAAII,MAAMC,KAAOP,EAAIQ,EAAI,KACzBN,EAAII,MAAMG,IAAMT,EAAIU,EAAI,KACxBd,SAASC,eAAe,YAAYc,YAAYT,IArBnD,WAGE,IAFA,IAAIU,EAJGhB,SAASiB,iBAAiB,qBAAqBC,OAKlDC,EAAe,EACVC,EAAQ,EAAGA,GAASJ,EAAUI,IACrCxB,EAAUwB,EAAMC,WAAYF,GAC5BA,GAAgB,EAAIH,EAXxBM,I","sources":["webpack://app-storyboard/./ts/index.ts"],"sourcesContent":["initsm();\r\n\r\nfunction getsm () {\r\n return document.querySelectorAll('.spring-mark li a').length\r\n}\r\n\r\nfunction initsm () {\r\n var smlength = getsm();\r\n var pathposition = 0;\r\n for (let index = 1; index <= smlength; index++) {\r\n pathOnDiv(index.toString(), pathposition);\r\n pathposition += 1 / smlength; \r\n }\r\n}\r\n\r\nfunction pathOnDiv(text: string, pos: any) {\r\n // Get the coordinates of the point that is the fraction 'pos' along the path\r\n var path = (document.getElementById('numbers-path') as unknown) as SVGGeometryElement;\r\n var pathLength = path.getTotalLength();\r\n var loc = path.getPointAtLength(pos * pathLength);\r\n\r\n // Make a div\r\n var div = document.createElement(\"div\");\r\n div.textContent = text;\r\n div.setAttribute(\"class\", \"pathDiv\");\r\n div.style.left = loc.x + \"px\";\r\n div.style.top = loc.y + \"px\";\r\n document.getElementById('svg-path').appendChild(div);\r\n}\r\n\r\n// window.addEventListener('resize', () => {\r\n// var elements = document.querySelectorAll('.pathDiv').forEach(function(item, index) {\r\n// item.remove()\r\n// });\r\n\r\n// initsm();\r\n// });\r\n"],"names":["pathOnDiv","text","pos","path","document","getElementById","pathLength","getTotalLength","loc","getPointAtLength","div","createElement","textContent","setAttribute","style","left","x","top","y","appendChild","smlength","querySelectorAll","length","pathposition","index","toString","initsm"],"sourceRoot":""}